package com.le.edu.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.le.edu.domain.entity.Teacher;
import com.le.edu.domain.vo.TeacherAndCourseListVO;
import com.le.edu.domain.vo.TeacherVO;

import java.util.List;

/**
 * @author 17447
 * @description 针对表【t_teacher(讲师)】的数据库操作Service
 * @createDate 2024-01-07 20:07:46
 */
public interface TeacherService extends IService<Teacher> {

    Page<TeacherVO> pageTeacherList(Page<TeacherVO> page, LambdaQueryWrapper<Teacher> wrapper);

    int resetPassword(Teacher teacher);

    void checkUsernameUniqueNeTeacherId(Long teacherId, String name);

    void checkUsernameUnique(String name);

    List<Teacher> listNameAndId();

    TeacherAndCourseListVO getTeacherAndCourse(Long teacherId);
}
